package org.jet.emall.rbac.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台登录登出日志表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_admin_login_log")
@ApiModel(value="AdminLoginLog对象", description="后台登录登出日志表")
public class AdminLoginLog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "角色id")
    private Integer roleId;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "用户ip")
    private String ip;

    @ApiModelProperty(value = "浏览器类型")
    private String userAgent;

    @ApiModelProperty(value = "操作类型: 1-登录; 2-登出")
    private Byte opType;

    @ApiModelProperty(value = "登录时间")
    private LocalDateTime loginTime;


}
